package ar.fiuba.tp7552.buildadmin.webactions.gastos;

import java.util.Collection;

import ar.fiuba.tp7552.buildadmin.model.gastos.Gasto;
import ar.fiuba.tp7552.buildadmin.service.GastoService;
import ar.fiuba.tp7552.buildadmin.webactions.BaseAction;

public class ListGastosAction {
	
	GastoService gastoService;
	
	// ~~ Constructor ====================================================
	
	public ListGastosAction(GastoService gastoService) {
		super();
		this.gastoService = gastoService;
	}
	
	// ~~ Actions ========================================================

	public String getAll() {
		return BaseAction.SUCCESS;
	}
	
	public Collection<Gasto> getGastos() {
		return gastoService.getAll();
	}
	
	

}
